<!-- List of details of chosen activity -->
<div class="fieldsets">
<fieldset>
    <legend>Activity details</legend>
    
            <p><b>Project: </b> <%= h @activity.project.name %></p>
            <p><b>Date: </b> <%= @activity.date.strftime('%A %d/%m/%Y') %></p>
            <p><b>Hours: </b> <%= hour_format(@activity.minutes) %></p>
            <p><b>Comment: </b> <%= simple_format(h(@activity.comments)) %></p>
            
    <p class="p_edit_back">
       <% if @current_user && (@current_user.id == @activity.user_id) && !@activity.invoice_id -%>
          <%= link_to 'Edit', :action => 'edit_activity', :id => @activity %> |
       <% end -%>
    <%= back_link(:span) %>
    </p>
</fieldset>
</div>
<!-- End of list -->